<?php
		session_start();
	error_reporting(E_ALL | E_STRICT);
	ini_set('display errors', 1);
	date_default_timezone_set('Europe/London');
	set_include_path('./lib'.PATH_SEPARATOR.'applications/models');	
	require_once "config.php";	
	require_once "header.php";
	
	include "./applications/default/components/loadMainContent.php";
	
	
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?php include "./lib/headinit.php" ?>
<link rel="stylesheet" href="css/layout.css" type="text/css" media="screen" charset="utf-8" />
<link rel="stylesheet" href="css/jd.gallery.css" type="text/css" media="screen" charset="utf-8" />
<script src="scripts/mootools-1.2.1-core-yc.js" type="text/javascript"></script>
<script src="scripts/mootools-1.2-more.js" type="text/javascript"></script>
<script src="scripts/jd.gallery.js" type="text/javascript"></script>
<script src="scripts/jd.gallery.transitions.js" type="text/javascript"></script>
</head>
<!--
 dat do -> Terracotta
hoangtuan1751988: dat den -> Black Clay
hoangtuan1751988: a mai -> Terrazo
hoangtuan1751988: da mai -> Terrazo
hoangtuan1751988: men -> Glazed
hoangtuan1751988: nhua -> Atlantic
hoangtuan1751988: gia co ->  ???  tao cung ch? bi?t dùng t? gì...hehe
hoangtuan1751988: phun cat -> ???
-->
<body onload="loadMaincotent('main','newproducts','productsajx')">
<script type="text/javascript">
			function ajaxLoad(divId,URL){
				
				//$('#main').fadeOut(500);
				var xmlhttp;
				
				if (window.XMLHttpRequest)
				  {// code for IE7+, Firefox, Chrome, Opera, Safari
				  xmlhttp=new XMLHttpRequest();
				  }
				else
				  {// code for IE6, IE5
				  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
				  }
				xmlhttp.onreadystatechange=function()
				  {
				  if (xmlhttp.readyState==4 && xmlhttp.status==200)
					{
					//$('#main').fadeIn(500);
					document.getElementById(divId).innerHTML=xmlhttp.responseText;
					var dScript=document.getElementById("dScript");
					eval(dScript.firstChild.innerHTML);
					//setTimeout('document.getElementById("cB").appendChild(document.getElementById("fbScript"))',1000);
					}
				  }
				xmlhttp.open("GET",URL,true);
				xmlhttp.send();
				
			}
			function loadMaincotent(divId,pageName,ajxName){
				var currentURL=window.location.href;
				
				currentURL=currentURL.replace(pageName,ajxName);
				
				currentURL+="?view=new";
				
				ajaxLoad(divId,currentURL);
			}

</script>
<div id="daddy">
	<div id="header">
		<?php $activemenu="products";include "./lib/menuinit.php" ?>
	</div>
	<!-- header -->
	<div id="content">
		<div id="cA">
			<!-- menu doc --->
            <?php include "./applications/default/components/loadVerticalMenu.php";?>
			<!-- ket thuc menu doc --->            
		</div><!-- cA -->
		<div id="cB">
			<div class="Ctopright"></div>
			<div id="main">
			<div style="width:100%;height:800px;text-align:center;">
					<img  style="margin-lelft:auto;margin-right:auto;margin-top:100px" src="./images/loading.gif"/><br/><br/><h1><i>loading...</i></h1>
			</div>
			</div>
			<div id="fbScript"><div id="fb-root"></div><script src="http://connect.facebook.net/en_US/all.js#appId=<?php echo $website_appId; ?>&amp;xfbml=1"></script><fb:comments numposts="10" width="669" publish_feed="true"></fb:comments></div>
		</div><!-- cB -->
		
		<div class="Cpad">
			<br class="clear" /><div class="Cbottomleft"></div><div class="Cbottom"></div><div class="Cbottomright"></div>
		</div><!-- Cpad -->
	</div><!-- content -->
	<div id="properspace"></div><!-- properspace -->
</div><!-- daddy -->
<?php include "./lib/footer.php" ?>
</body>
</html>
